package com.dokimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dokimall.common.utils.PageUtils;
import com.dokimall.product.entity.CategoryEntity;
import com.dokimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author mori
 * @email 550144898@qq.com
 * @date 2021-09-26 14:21:33
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);
/**
 * 找到完整路径
 * 【父/子/孙】
 * */
    Long[] findCatelogPath(Long catelogId);

    void saveDetails(CategoryEntity category);

    List<CategoryEntity> getFirstLevel();

    Map<String,List<Catelog2Vo>> getCatelogJson();
}

